package org.esisar.utils;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class JDBCPropGenerator {

	public static void main( String[] args )
	{
		Properties prop = new Properties();
		
		try {

			prop.setProperty("driver", "com.mysql.jdbc.Driver");
			prop.setProperty("dbname", "sadecki");
			prop.setProperty("login", "sadecki");
			prop.setProperty("password", "c3z8LTsE");
			prop.setProperty("server", "mysql.agh.edu.pl");
			prop.setProperty("port", "3306");
			
			
			prop.store(new FileOutputStream("jdbc.properties"), null);

		} catch (IOException ex) {
			ex.printStackTrace();
		}
	}

}
